package com.github.icloudpay.crm.core.rest;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.github.icloudpay.crm.core.biz.OrderRechargeBiz;
import com.github.icloudpay.crm.core.entity.OrderRecharge;
import com.github.wxiaoqi.security.common.rest.BaseController;


/**
 * 充值
 * @author Administrator
 *
 */
@Controller
@RequestMapping("admin/orderRecharge")
public class OrderRechargeController extends BaseController<OrderRechargeBiz,OrderRecharge> {

	private static final Logger logger = LoggerFactory.getLogger(OrderRechargeController.class);
	
	@Autowired
	private OrderRechargeBiz rechargeBiz;
	
	/**
	 * 查询充值记录
	 * @param map
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "/getRechargeRecord", method = RequestMethod.POST)
	public Map<String, Object> getRechargeRecord(Map<String, Object> map) {
		logger.info("查询充值记录，请求参数。。。{}"+map);
		Map<String, Object> res = rechargeBiz.queryRechargeRecord(map);
		logger.info("查询充值记录，响应参数。。。{}"+res);
		return res;
	}
}